package com.example.myapplication.utils;

import ohos.agp.window.dialog.ToastDialog;
import ohos.app.Context;

public class ToastUtil {
    public static void showToast(Context context, String msg){
        new ToastDialog(context).setText(msg).setDuration(2000).show();
    }
    public static void showToast(Context context,String msg,int time){
        new ToastDialog(context).setText(msg).setDuration(time).show();
    }
}
